package com.gopay.common.domain.report;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 * 
 * @Event.java
 * @author zhaoxubing
 * @2015年5月22日 下午4:34:57  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name="MQ_EVENT_INFO")
public class Event implements Serializable {
	private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(name="MQ_EVENT_INFO_DTLSQ_GENERATOR", sequenceName="MQ_EVENT_INFO_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="MQ_EVENT_INFO_DTLSQ_GENERATOR")
    @Column(name="DTL_SQ", unique=true, nullable=false, precision=22)
    private int id;

    @Column(name="BATCH_TASK_ID", length=100)
    private String batchTaskId;

    @Column(name="CREATED_TS", nullable=false)
    private Date createdTs;

    @Column(name="GOPAY_ORDER_ID", length=30)
    private String gopayOrderId;

    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;

    @Column(length=100)
    private String remark1;

    @Column(length=100)
    private String remark2;

    @Lob
    @Column(name="\"SNAPSHOT\"")
    private String snapshot;

    @Column(nullable=false, length=2)
    private String stat;

    @Column(name="\"TYPE\"", nullable=false, length=2)
    private String type;

    @Version
    @Column(name="\"VERSION\"", nullable=false, precision=22)
    private int version;

    public int getId() {
        return id;
    }

    public String getBatchTaskId() {
        return batchTaskId;
    }

    public void setBatchTaskId(String batchTaskId) {
        this.batchTaskId = batchTaskId;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public String getGopayOrderId() {
        return gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getRemark1() {
        return remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public String getRemark2() {
        return remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    public String getSnapshot() {
        return snapshot;
    }

    public void setSnapshot(String snapshot) {
        this.snapshot = snapshot;
    }

    public String getStat() {
        return stat;
    }

    public void setStat(String stat) {
        this.stat = stat;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public void setId(int id) {
        this.id = id;
    }

	

}
